package com.lighting.smssystem.model;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author leemaster
 * @Title: UserFavorite
 * @Package com.lighting.smssystem.model
 * @Description: create table user_favorite_tbl(
 * favorite_id bigint primary key auto_increment ,
 * favorite_company bigint not null,
 * favorite_user bigint not null ,
 * favorite_at timestamp default current_timestamp
 * );
 * @date 2019-06-0600:03
 */
@Data
@TableName("user_favorite_tbl")
public class UserFavorite {

    public UserFavorite(String favoriteCompany) {
        this.favoriteCompany = Long.parseLong(favoriteCompany);
    }

    private Long favoriteId;

    private Long favoriteCompany;

    private Long favoriteUser;

    private Date favoriteAt;
}
